<?php

session_start();
if(!session_is_registered(username)){
header("location:index.php");
}

$newfront = $_POST['content'];
if(is_writable("welcometext.txt")){
file_put_contents("welcometext.txt",stripslashes($newfront));

header("location:editfront.php");
} else {
die("admin/welcometext.txt is not writable...");
}
?>
